package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: DishSetmealMapper
 * Package: com.sky.mapper
 * Description:
 *
 * @Author Dylan_Jun
 * @Create 2024/1/31 16:22
 * @Version 1.0
 */
@Mapper
public interface DishSetmealMapper {

    List<SetmealDish> getByids(List<Long> dish_ids);



    void saveBatch(List<SetmealDish> setmealDishes);

    List<SetmealDish> getBySetmealId(List<Long> setmeal_ids);

    void deleteBatch(List<Long> setmeal_ids);

    @Select("select * from setmeal_dish where setmeal_id = #{id}")
    List<SetmealDish> getByid(Long id);
}
